package viewControllers;

import globals.GlobalObjects;
import graphics.GraphicalObject;
import graphics.ParticleSystem.VolcanoParticleSystem;
import physics.GameObject;

public class MessileViewController extends ViewController {
	public class MessileBody extends AnimationPart{
		public MessileBody(GraphicalObject object) {
			super(object);
		}
	}
	
	public MessileViewController(GameObject object) {
		super(object);
		MessileBody body = new MessileBody(GlobalObjects.getGraphic("missile"));
		addPart(body);
	
		MessileBody burnerPart = new MessileBody(new Burner());
		addPart(burnerPart);
		
	}
	
	class Burner extends VolcanoParticleSystem{
		public Burner(){
			setSize(1);
			setDiameter(0.1f);
			position.getCenter().add(getUp());
			rotate(-Math.PI/2.0, 0, 0);
			setMax_points(25);
			setNew_points(5);
			setSpeed(0.1f);
		}
		
	};
	
}
